Use the right variable. A static WirelessNetwork._securityTypes
variable does exist, but the correct variable when checking
autoconnect possibility is this._securityType; this._securityTypes
is undefined, causing clicking an enterprise network name in panel
network selector do nothing instead of properly opening GNOME
Settings panel.
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7698
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3426>
canAutoconnect() {
const canAutoconnect =
- this._securityTypes !== NM.UtilsSecurityType.WPA_ENTERPRISE &&
- this._securityTypes !== NM.UtilsSecurityType.WPA2_ENTERPRISE;
+ this._securityType !== NM.UtilsSecurityType.WPA_ENTERPRISE &&
+ this._securityType !== NM.UtilsSecurityType.WPA2_ENTERPRISE;
return canAutoconnect;
}